package com.woniuxy.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 动物库存管理对象 algs_animal
 *
 * @author ruoyi
 * @date 2023-03-20
 */
public class AlgsAnimal extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 动物ID */
    private Long animalId;

    /** 动物名称 */
    @Excel(name = "动物名称")
    private String animalName;

    /** 数量 */
    @Excel(name = "数量")
    private Long animalNumber;

    /** 动物性别 */
    @Excel(name = "动物性别")
    private Long animalSex;

    /** 申请时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "申请时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date animalDate;

    /** 笼子大小（外键） */
    @Excel(name = "笼子大小", readConverterExp = "外=键")
    private Long cageSizeId;

    /** 备用列 */
    @Excel(name = "备用列")
    private Long animalBy1;

    /** 备用列 */
    @Excel(name = "备用列")
    private String animalBy2;

    /** 备用列 */
    @Excel(name = "备用列")
    private String animalBy3;

    public void setAnimalId(Long animalId)
    {
        this.animalId = animalId;
    }

    public Long  getAnimalId()
    {
        return animalId;
    }
    public void setAnimalName(String  animalName)
    {
        this.animalName = animalName;
    }

    public String  getAnimalName()
    {
        return animalName;
    }
    public void setAnimalNumber(Long animalNumber)
    {
        this.animalNumber = animalNumber;
    }

    public Long getAnimalNumber()
    {
        return animalNumber;
    }
    public void setAnimalSex(Long animalSex)
    {
        this.animalSex = animalSex;
    }

    public Long getAnimalSex()
    {
        return animalSex;
    }
    public void setAnimalDate(Date animalDate)
    {
        this.animalDate = animalDate;
    }

    public Date getAnimalDate()
    {
        return animalDate;
    }
    public void setCageSizeId(Long cageSizeId)
    {
        this.cageSizeId = cageSizeId;
    }

    public Long getCageSizeId()
    {
        return cageSizeId;
    }
    public void setAnimalBy1(Long animalBy1)
    {
        this.animalBy1 = animalBy1;
    }

    public Long getAnimalBy1()
    {
        return animalBy1;
    }
    public void setAnimalBy2(String animalBy2)
    {
        this.animalBy2 = animalBy2;
    }

    public String getAnimalBy2()
    {
        return animalBy2;
    }
    public void setAnimalBy3(String animalBy3)
    {
        this.animalBy3 = animalBy3;
    }

    public String getAnimalBy3()
    {
        return animalBy3;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("animalId", getAnimalId())
                .append("animalName", getAnimalName())
                .append("animalNumber", getAnimalNumber())
                .append("animalSex", getAnimalSex())
                .append("animalDate", getAnimalDate())
                .append("cageSizeId", getCageSizeId())
                .append("animalBy1", getAnimalBy1())
                .append("animalBy2", getAnimalBy2())
                .append("animalBy3", getAnimalBy3())
                .toString();
    }
}
